﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Negocio
{

    //extiende Appointment
    public class ActivityAppointment: Appointment
    {
        private Activity activity;


        public ActivityAppointment(): base()
        {
            this.Activity = new Activity();
        }

        public Activity Activity
        {
            get { return this.activity; }
            set { this.activity = value; }
        }

        public override bool Equals(object obj)
        {
            ActivityAppointment agenda = (ActivityAppointment)obj;
            return this.Date.Equals(agenda.Date) && this.Activity.Equals(agenda.Activity);
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
